<?php defined('SHIELDON_VIEW') || exit('Life is short, why are you wasting time?');

if (empty($ui['background_image'])) {
    $ui['background_image'] = '';
}

$css = <<< EOF

    :selection, ::-moz-selection {
        background-color: #E13300;
        color: white;
    }

    html, body, .wrapper {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    body {
        background-color: {$ui['bg_color']};
        background-image: url({$ui['background_image']});
        font-family: "-apple-system", "BlinkMacSystemFont", "Helvetica Neue", "Helvetica", "Arial", "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", sans-serif;
    }

    :lang(en) body {
        font-family: "-apple-system", "BlinkMacSystemFont", "Helvetica Neue", "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", sans-serif;
    }

    :lang(zh) body {
        font-family: "-apple-system", "BlinkMacSystemFont", "Helvetica Neue", "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", "微軟正黑體", "Microsoft JhengHei", "SimHei", "Microsoft YaHei", "文泉驛正黑", "WenQuanYi Zen Hei", "儷黑 Pro", "LiHei Pro", "標楷體", "DFKai-SB";
    }

    :lang(ja) body {
        font-family: "-apple-system", "BlinkMacSystemFont", "Helvetica Neue", "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Osaka", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic";
    }

    :lang(ko) body {
        font-family: "-apple-system", "BlinkMacSystemFont", "Helvetica Neue", "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", "Dotum", "Gulim";
    }

    .wrapper {
        position: absolute;
        text-align: center;
        display: flex;
        align-items: center;
        font-size: 14px;

    }

    .inner {
        text-align: center;
        width: 100%;
        max-width: 420px;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }

    .inner .card {
        position: relative;
        display: flex;
        flex-direction: column;
        min-width: 0;
        word-wrap: break-word;
        background-color: #fff;
        background-clip: border-box;
        border: 1px solid rgba(0, 0, 0, 0.125);
        border-radius: 5px;
        box-shadow: 1px 4px 14px 1px rgba(0, 0, 0, {$ui['shadow_opacity']});
    }

    .inner .card .card-header {
        background-color: {$ui['header_bg_color']};
        color: {$ui['header_color']};
        font-weight: bold;
        padding: 0.75rem 1.25rem;
        margin-bottom: 0;
        border-radius: 4px 4px 0 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    }

    .inner .card:before {
        content: "";
        position: absolute;
        background-image: url('');
        background-repeat: no-repeat;
        background-position: -2px -2px;
        width: 62px;
        height: 33px;
        border-top-left-radius: 4px;
        top: 0;
        left: 0;
        display: inline-block;
    }

    .status-container {
        display: flex;
        align-items: center;
    }

    .captcha-container {
        text-align: center;
    }

    .status-icon {
        width: 100px;
        height: 100px;
        padding: 10px;
        display: flex;
        justify-items: center;
        align-items: center;

    }

    .status-icon > img {
        width: 80px;
        height: 80px;
    }

    .status-info {
        text-align: center;
        margin-bottom: 30px;
    }

    .status-message {
        text-align: left;
        padding: 15px;
    }

    .status-user-info {
        padding: 10px;
        text-align: left;
        font-size: 12px;
        color: #999;
        line-height: 150%;
    }

    .status-user-info > .row {
        display: flex;
    }

    .status-user-info > .row > strong {
        color: #666;
        margin-right: 5px;
        width: 80px;
        display: inline-block;
    }

    .status-user-info > .row > span {
        display: inline-block;
        word-break: break-all;
        width: calc(100% - 80px);
    }

    a {
        color: #0069ff;
        background-color: transparent;
        font-weight: normal;
        text-decoration: none;
    }

    input[type=submit],
    input[type=button] {
        background-color: #eff3f6;
        background-image: linear-gradient(-180deg,#fafbfc,#eff3f6 90%);
        color: #24292e;
        -moz-appearance: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-appearance: none;
        -webkit-user-select: none;
        appearance: none;
        background-position: -1px -1px;
        background-repeat: repeat-x;
        background-size: 110% 110%;
        border: 1px solid rgba(27,31,35,.2);
        border-radius: .25em;
        cursor: pointer;
        display: inline-block;
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        padding: 6px 12px;
        position: relative;
        user-select: none;
        vertical-align: middle;
        white-space: nowrap;
    }

EOF;

return $css;